<HTML><HEAD><TITLE>nth0(?I, ?List, -Elem)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(listut)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>nth0(?I, ?List, -Elem)</H1>
Access nth element of a list
<DL>
<DT><EM>I</EM></DT>
<DD>Integer position index, counting from 0
</DD>
<DT><EM>List</EM></DT>
<DD>A list
</DD>
<DT><EM>Elem</EM></DT>
<DD>Any term
</DD>
</DL>
<H2>Description</H2>
	Succeeds when Elem is the Nth member of List, counting the
	first as element 0.  (That is, throw away the first N elements
	and unify Elem with the next.)
    
<H3>Modes and Determinism</H3><UL>
<LI>nth0(+, +, -) is det
<LI>nth0(-, +, -) is nondet
<LI>nth0(-, -, -) is nondet
</UL>
<H2>See Also</H2>
<A HREF="../../lib_public/listut/nth1-3.html">nth1 / 3</A>, <A HREF="../../lib_public/listut/nth0-4.html">nth0 / 4</A>, <A HREF="../../lib_public/listut/nth1-4.html">nth1 / 4</A>
</BODY></HTML>
